package com.itbupt.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itbupt.dto.LoginFormDTO;
import com.itbupt.dto.Result;
import com.itbupt.entity.User;

import javax.mail.MessagingException;
import javax.servlet.http.HttpSession;

/**
 * @Author BUPT-Dingchang
 * @Create 2024/5/2 16:45
 * ClassName: UserService
 * Description:
 */
public interface IUserService extends IService<User> {

    // 发送验证码
    Result sendCode(String phone, HttpSession session) ;

    // 登录
    Result login(LoginFormDTO loginForm, HttpSession session);

    // 注册
    Result sign();

    // 登出
    Result signCount();
}
